import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//实时缴款业务应答报文录入原交易查询
export const realTimePaymentResponseEntryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseEntry/search`,
}

//实时缴款业务应答报文查询明细
export function realTimePaymentResponseEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseEntry/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


//实时缴款业务应答报文录入table查询
export const realTimePaymentResponseEntryDetailTableQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseEntry/detailTable`,
}

// 实时缴款业务应答报文录入提交
export function realTimePaymentResponseEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseEntry/save`,
    method: 'post',
    data:data
  })
}



//实时缴款业务应答报文审核查询
export const realTimePaymentResponseApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseApprove/search`,
}

//实时缴款业务应答报文审核查询明细
export function realTimePaymentResponseApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseApprove/detail`,
    method: 'get',
    params:{id:data.id,oriId:data.oriId}
  })
}

//实时缴款业务应答报文审核查询明细table查询
export const realTimePaymentResponseApproveDetailTable = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseApprove/detailTable`,
}


//实时缴款业务应答报文审核通过
export function realTimePaymentResponseApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseApprove/approve`,
    method: 'post',
    data:data,
  })
}

//实时缴款业务应答报文审核拒绝
export function realTimePaymentResponseApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseApprove/reject`,
    method: 'post',
    data:data,
  })
}



//实时缴款业务应答报文查询
export const realTimePaymentResponseQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseQuery/search`,
}

//实时缴款业务应答报文查询明细
export function realTimePaymentResponseQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseQuery/detail`,
    method: 'get',
    params:{id:data.id,oriId:data.oriId}
  })
}

//实时缴款业务应答报文查询明细table查询
export const realTimePaymentResponseQuerydDetailTable = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentResponseManagement/RealTimePaymentResponseQuery/detailTable`,
}
